home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.teleport.com!usenet
- From: GHouck <hksys@teleport.com>
- Newsgroups: comp.lang.c++,comp.lang.c
- Subject: Re: compiling problem under g++
- Date: 3 Apr 1996 12:54:14 GMT
- Organization: systems hk
- Message-ID: <4jtsdm$hba@nadine.teleport.com>
- References: <3161A2D3.7D84@psu.edu>
- NNTP-Posting-Host: ip-pdx01-07.teleport.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
-
- "Jason A. Soloff" <jas251@psu.edu> wrote:
- >Minor problem here... I have been coding in C++ for years on the Dos/win
- >platforms, and am running into (what has to be) a simple, but annoying
- >problem...
- >
- >#include <math.h>
- >int main(void)
- >{
- > printf("%f\n",sqrt(25));
- > return 0;
- >}
- >
- >OK... thats it... nice and simple huh? Nope.
- >Won't compile on two unix systems I am trying to work with...
- >SunOS 4.1.3_U1, with g++ 2.4 It can't seem to find the
- >sqrt code from the library? Am I missing something? is the
- >library called something else under UNIX?
-
- Jason,
-
- If the '25' is truly an integer, perhaps that is the
- problem, since there probably is no function available
- to take the square root of an integer, but rather
- a double. Unless, of course, it casts it, then ...
-
- Yours, Geoff Houck
-
-
-
-
-